var tablename = "message";
var email;
module.exports = {
	get: function(req, res) {
		// console.log("查询表“", tablename, "”的数据", req.body, req.query);
		var finner = req.models[tablename].find({
			"msgid": req.query.msgid,
		});
		require("../../include/RESTful_query").orm_get(finner, req.query);

		finner.run(function(err, result) {
			if (err) {
				res.send(500, err);
			} else {
				email = result[0].email;
				res.send(result);
			}
		});
	}
}